package com.chiancloud.shield.common;

import org.apache.hadoop.fs.CommonConfigurationKeysPublic;
import org.apache.hadoop.yarn.conf.YarnConfiguration;

/**
 * Created by wanghui on 14-8-20.
 */
public interface ShieldXmlConfKeys {
    String PREFIX_PROVIDER = "shield.provider";
    String KEY_PROVIDER = PREFIX_PROVIDER + ".%s";
    String KEY_PROVIDER_HBASE = PREFIX_PROVIDER + ".hbase";
    String KEY_PROVIDER_ACCUMULO =
            PREFIX_PROVIDER + ".accumulo";
    String KEY_PROVIDER_AGENT = PREFIX_PROVIDER + ".agent";
    String KEY_TEMPLATE_ORIGIN = "shield.template.origin";
    String FS_DEFAULT_NAME_CLASSIC = "fs.default.name";
    String KEY_KERBEROS_PRINCIPAL = "shield.kerberos.principal";
    String KEY_PROTOCOL_ACL = "security.shield.protocol.acl";
    String KEY_AM_RESTART_LIMIT = "shield.yarn.restart.limit";
    int DEFAULT_AM_RESTART_LIMIT = 2;
    String KEY_SECURITY =
            CommonConfigurationKeysPublic.HADOOP_SECURITY_AUTHENTICATION;
    String KEY_YARN_QUEUE = "shield.yarn.queue";
    String DEFAULT_YARN_QUEUE = YarnConfiguration.DEFAULT_QUEUE_NAME;
    String KEY_YARN_QUEUE_PRIORITY = "shield.yarn.queue.priority";
    int DEFAULT_YARN_QUEUE_PRIORITY = 1;
    String KEY_SLIDER_BASE_PATH = "shield.base.path";
    String CLUSTER_DIRECTORY_PERMISSIONS =
            "shield.cluster.directory.permissions";
    String DEFAULT_CLUSTER_DIRECTORY_PERMISSIONS = "750";
    String DATA_DIRECTORY_PERMISSIONS = "shield.data.directory.permissions";
    String DEFAULT_DATA_DIRECTORY_PERMISSIONS = "750";
    String REGISTRY_PATH = "shield.registry.path";
    String DEFAULT_REGISTRY_PATH = "/registry";
    String REGISTRY_ZK_QUORUM = "shield.zookeeper.quorum";
    String DEFAULT_REGISTRY_ZK_QUORUM = "localhost:2181";
    String IPC_CLIENT_FALLBACK_TO_SIMPLE_AUTH =
            "ipc.client.fallback-to-simple-auth-allowed";
    String HADOOP_HTTP_FILTER_INITIALIZERS =
            "hadoop.http.filter.initializers";
}
